package com.itcast.tanhuasso.service;

import java.lang.ref.SoftReference;

/**
 * @PachageName: com.itcast.tanhuasso.service
 * @ClassName:
 * @Description: TODO
 * @Author: Hushi
 * @DateTime: 2021/2/2116:10
 * @Version 1.0
 */
public class SoftClass {
    public static void main(String[] args) {
        SoftReference<Byte[]> softReference = new SoftReference<>(new Byte[1024 * 1024 * 10]);
        Byte[] bytes = new Byte[1024 * 1024 * 10];
        System.out.println(softReference.get().length);
    }
}
